package com.jiezuo.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiezuo.auth.entity.Permission;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author 王帅
 * @Date 2020/7/29 10:46
 * @Version 1.0
 */
public interface PermissionService extends IService<Permission> {

    List<Map<String, Object>> findRoleAndPermissionByUser(String user_id,String user_name);

    List<String> findByUserId(String user_id);

    List<Permission> menuTree(Permission permission);

    List<Permission> getChildren(String pid, String resource_name, String belongs);

    List<String> findButtonByUserId(String user_id);

    boolean savePermission(Permission permission);

    boolean updatePermission(Permission permission);

    List<Map<String,Object>> findResourceDetails(String id);

}
